@import './variable.scss';
@import './base.scss';
@import './maxin.scss';
header{
    @include center();
    box-sizing: border-box;
    position: sticky;
    z-index: 10;
    top: 0;
    background-color: rgba(255, 255, 255, 0.8);
    .dl{
        font-size: 12px;
        color: #3b3b3b;
        visibility: hidden;
        float: left;
        padding: 10px;
        padding-bottom: 0;
        border: none;
        button{
            background-color: #fff;
            border: 1px solid #dadada;
            padding: 2px;
            cursor: pointer;
        }
    }
    .ss{
        position: relative;
        ol{
            position: absolute;
            right: 30px;
            top: 44px;
            z-index: 9;
            width: 260px;
            height: 180px;
            border: 1px solid #333;
            border-top: none;
            background-color: #fff;
            box-sizing: border-box;
            padding: 10px 20px 20px;
            display: none;
            li{
                height: 14px;
                line-height: 14px;
                font-size: 12px;
                color: #3b3b3b;
                cursor: pointer;
                @include flex();
                &:hover{
                    background-color: #ccc;
                    color: #fff;
                }
            }
        }
    }
    ul{
        float: right;
        padding-top: 15px;
        li{
            float: right;
            padding: 0 10px;
            font-size: 12px;
            color: #1b1b1b;
            border-right: 1px dashed gray;
        }
    }
div{
    float: right;
    border-bottom: 1px solid gray;
    p{
    font-size: 14px;
    line-height: 40px;
    float: left;
    font-weight: 700;
    cursor: pointer;
    margin-left: 10px;
    color: grey;
    }
    input{
        float: right;
        @include input();
        height: 25px;
        width: 250px;
        padding: 5px 0 5px 10px;
        font-size: 12px;
        color: gray;
        background-color: rgba(255, 255, 255, 0.8);
    }
}
    }
nav{
    @include center();
    @include flex(space-between,center);
    margin-top: 5px;
    // background-color: yellowgreen;
    height: 51px;
    box-sizing: border-box;
    ul{
        height: 51px;
        line-height: 51px;
        font-size: 14px;
        font-weight: 700px;
        li{
            float: left;
            padding: 0 10px;
            font-weight: 700;
            background-image: url(../img/black-deshed.jpg);
            background-position:right center;
            background-repeat: no-repeat;
            background-size: 1px 15px;
            &:hover{
                color: red;
            }
        }
        .li_bg{
            background-image: none;
            padding: 0;

        }
    }
    ol{
        height: 51px;
        line-height: 51px;
        font-size: 14px;
        font-weight: 700px;
        li{
            float: left;
            padding: 0 25px;
            background-color: gray;
            font-weight: 700;
            color: white;
            background-image: url(../img/w-deshed.jpg);
            background-position:right center;
            background-repeat: no-repeat;
            background-size: 1px 15px;
            &:hover{
                color: red;
            }
        }
        .ol_end2{
            background-color: #666;
        }
        .ol_end{
            background-image: none;
        }
    }
}
section{
    @include center();
    height: 100%;
    box-sizing: border-box;
    padding: 20px 30px;
    margin-top: 50px;
    .box{
        @include flex();
        .list{
            // background-color: violet;
            // width: 88px;
            height: 500px;
            box-sizing: border-box;
            button{
                width: 86px;
                height: 26px;
                background-color: #fff;
                border:1px solid #dadada;
                color: #dadada;
                font-size: 24px;
                cursor: pointer;
            }
                li{
                    width: 80px;
                    height: 80px;
                    border: 1px solid gray;
                    margin: 6px 2px;
                    img{
                        width: 80px;
                        cursor: pointer;
                    }
                }
                .active{
                    border: 1px solid tomato;
                }
            }
        }
        .cent_box{
            // background-color: #40e0d0;
            @include flex();
            .lef{
                width: 50px;
                height: 500px;
                line-height: 500px;
                text-align: center;
                text-align: center;
                font-size: 24px;
                cursor: pointer;
            }
            .rig{
                @extend .lef;
            }
            .pic{
                position: relative;
                width: 500px;
                cursor: pointer;
                .cursor{
                    width: 200px;
                    height: 200px;
                    background-color: yellow;
                    opacity: 0.5;
                    position: absolute;
                    left: 0;
                    bottom: 0;
                    cursor: move;
                }
                img{
                    width: 500px;
                }
            }
        }
        .text{
            // background-color: teal;
            flex: 1;
            height: 500px;
            position: relative;
            .enlarge{
                width: 500px;
                height: 500px;
                // border: 1px solid #dadada;
                position: absolute;
                top: 0;
                left: 20px;

                background-image: url();
                background-size: 1250px 1250px;
                background-repeat: no-repeat;
                background-position: 0 0;
                overflow: hidden;
            }
            .tit{
                color: $blk;
                line-height: 20px;
                font-weight: 700;
                margin-bottom: 20px;
            }
            .price{
                width: 540px;
                height: 32px;
                @include flex(space-between,center);
                margin-bottom: 20px;
                .price_now{
                    color: $blk;
                    font-weight: 700;
                }
                .price_start{
                    color: #7d7d7d;
                    font-size: 12px;
                    span{
                        font-size: 14px;
                        font-weight: 700;
                    }
                }

            }
            .col{
                font-size: 12px;
                margin-bottom: 10px;
            }
            ul{
                width: 540px;
                margin-bottom: 20px;
                li{
                    width: 38px;
                    height: 38px;
                    float: left;
                    margin-left: 10px;
                    img{
                        width: 38px;
                        cursor: pointer;
                    }
                }
            }
            .num{
                @include flex(start,center);
                width: 540px;
                margin-bottom: 20px;
                .num_tit{
                    width: 60px;
                    font-size: 12px;
                    color: $blk;
                    font-weight: 700;
                    line-height: 40px;
                }
                div{
                    width: 160px;
                    height: 40px;
                    @include flex(start,center);
                    button{
                        width: 20px;
                        height: 20px;
                        border: none;
                        background-color: #fff;
                        font-size: 28px;
                        line-height: 20px;
                        font-weight: 700;
                        cursor: pointer;
                    }
                    input{
                        text-align: center;
                        margin: 0 10px;
                        width: 80px;
                        line-height: 32px;
                    }
                }
                .inventory{
                    font-size: 12px;
                    color: #7d7d7d;
                    line-height: 40px
                }
            }
            div{
                width: 540px;
                height: 52px;
                @include flex();
                .buy{
                    width: 240px;
                    height: 52px;
                    color: #ff0000;
                    font-size: 14px;
                    font-weight: 700;
                    border: 1px solid #ff0000;
                    background-color: #fff;
                    margin-right: 20px;
                }
                .car{
                    @extend .buy;
                    background-color: #ff0000;
                    color: #fff;
                }
            }
        }
    }

footer{
    @include center();
    height:100%;
    ul{
        width: 100%;
        height: 50px;
        font-size: 12px;
        padding-top: 50px;
        li{
        text-align: center;
        float: left;
        width: 306px;
        line-height: 50px;
        background-color:#000;
        background-image: url(../img/w-deshed.jpg);
        background-position:right center;
        background-repeat: no-repeat;
        background-size: 1px 15px;
        a{
            color: white;
            &:hover{
                color: red;
            }
        }
        }
        .logo_uniqlo{
            width: 50px;
            height: 50px;
        }
    }
    p{
        padding-top: 80px;
        color: #989a98;
        font-size: 12px;
    }
}